import Components from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
import IconsResolver from 'unplugin-icons/resolver'

export default function createUseComponents() {
  return Components({
    resolvers: [NaiveUiResolver(), IconsResolver({ prefix: 'icon' })],
    dts: 'src/types/auto-use-components.d.ts',
    dirs: ['src/WLib'],
  })
}
